import Modeler from 'bpmn-js/lib/Modeler'

import inherits from 'inherits'

import EmptyPaletteProvider from './components/EmptyPaletteProvider'
import CustomRenderer from "../customModeler/custom/CustomRenderer";
import EmptyContextPadProvider from './components/EmptyContextPadProvider'

export default function ModifyModeler(options) {
  Modeler.call(this, options)

  this._customElements = []
}

inherits(ModifyModeler, Modeler)

ModifyModeler.prototype._modules = [].concat(
  ModifyModeler.prototype._modules, [{
    __init__: ['paletteProvider', 'contextPadProvider'],
    paletteProvider: ['type', CustomRenderer],
    contextPadProvider: ['type', EmptyContextPadProvider]
  }]
)

